/*
     File: AtomicElementViewController.h
 Abstract: Controller that manages the full tile view of the atomic information,
 creating the reflection, and the flipping of the tile.
  Version: 1.0 
 Copyright (C) 2009 Apple Inc. All Rights Reserved.
 
 */

#import <UIKit/UIKit.h>

@class Train;
@class AtomicElementView;
@class AtomicElementFlippedView;

@interface AtomicElementViewController : UIViewController <UINavigationControllerDelegate> {
	// one element to show info about
	Train* iTrain;
	
	AtomicElementView *atomicElementView;
	AtomicElementFlippedView *atomicElementFlippedView;
	UIImageView *reflectionView;
	UIView *containerView;	
	UIButton *flipIndicatorButton;	
	BOOL frontViewIsVisible;
	
	NSString* dataBaseName;
}
@property (nonatomic,retain) NSString* dataBaseName;
@property (assign) BOOL frontViewIsVisible;
@property (nonatomic,retain) Train* iTrain;
@property (nonatomic,retain) UIView *containerView;
@property (nonatomic,retain) AtomicElementView *atomicElementView;
@property (nonatomic,retain) UIImageView *reflectionView;
@property (nonatomic,retain) AtomicElementFlippedView *atomicElementFlippedView;
@property (nonatomic,retain) UIButton *flipIndicatorButton;

- (void)flipCurrentView;
- (void)transitionDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
-(void) goBackInModalDialog;

@end
